<#include "admin/include/inside_header.ftl" >
<body>
<@t.container title="角色列表" >
  	       <!--operator-->
  	       <@t.btn_a name="增加角色" icon="plus" href="admin/role/toAdd"/>
  	       <@t.btn_b name="删除角色" icon="trash" onclick="batchDeleteFun('admin/role/delete');" />
  		   <@t.dt>
  		   		 <@t.dtheader>
						 <@t.column title="ID" />
						 <@t.column title="名称" />
				</@t.dtheader>
  			<@t.dtbody>
  				 <#list page.list as a>
                     <tr onclick="checkDataGridRow('${a.id}');">
                      	<td><input name='SelectedID' id="select_${a.id}" value="${a.id}" type="checkbox"></td>
                        <td>${a.id}</td>
                        <td>${a.name}</td>
                        <td>
                        	<@t.btn_b name="删除" size="btn-xs" icon="trash" onclick="batchDeleteFun('admin/role/delete','${a.id}');" />
							<@t.btn_a name="修改" size="btn-xs" icon="pencil" href="admin/role/toAdd?id=${a.id}"/>
							<@t.btn_b name="分配资源" size="btn-xs" icon="asterisk" onclick="alertDiv('分配资源——${a.name}角色','admin/role/auths?roleId=${a.id}');" />
						</td>
                     </tr>
				 </#list>
  			</@t.dtbody>
  		</@t.dt>
  </@t.container>
<!-- dialog -->
<div id="dd"></div>
<#include  "admin/include/footer.ftl">
</body>
</html>